//
//  WBComposeTypeView.swift
//  WB
//
//  Created by macsss on 16/7/16.
//  Copyright © 2016年 macssss. All rights reserved.
//

import UIKit

class WBComposeTypeView: UIView {

    class func composeTypeVieW() -> WBComposeTypeView {
        
        let nib = UINib.init(nibName: "WBComposeTypeView", bundle: nil)
        
        let v = nib.instantiate(withOwner: nil, options: nil)[0] as! WBComposeTypeView
        
        v.frame = UIScreen.main().bounds
        
        return v
    }
    
    
    func show() {
        
        //获取根视图控制器 的View
         guard let vc = UIApplication.shared().keyWindow?.rootViewController else {
            
            return
        }
        
        vc.view.addSubview(self)
        
    }
}
